package com.citibank.dashboard.controller;

import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.citibank.dashboard.to.TesteTO;

@Controller
public class TesteController {

	/*@Autowired
	private TesteDAO testeDAO;*/

	@RequestMapping(value = "/metodo", method = RequestMethod.POST)
	public String metodo() {
		
		return "pagina.jsp";
	}
	
	
	 @RequestMapping(value = "/testeMetodo", method = RequestMethod.POST)
	    public String testeMetodo(@ModelAttribute("teste")
	    TesteTO teste, BindingResult result) {
		 return "pagina";
		 
	 }

}
